package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.mbc.rmt.data.AgentDataList;
import com.mbc.rmt.entities.Agent;
import com.mbc.rmt.entities.AgentBalanceRpt;
import com.mbc.rmt.entities.AgentLedgerRpt;
import com.mbc.rmt.entities.AgentRpt;


public interface AgentDAO {

	public void create(Agent entity) throws SQLException;
	public void update(Agent entity) throws SQLException;
	public void delete(long key) throws SQLException;
	public Agent findByCode(String code,long branchID) throws SQLException;
	public Agent findById(long agentid)throws SQLException;
	public AgentDataList findAgents(Agent cri)throws SQLException;	
	public AgentDataList getAgentList(AgentRpt agentRpt) throws SQLException;
	ResultSet prepareAgentReport(AgentRpt agentRpt)throws SQLException;
	//(5/8/2014)
	public Agent getAgents(String code,long branchId) throws SQLException;
	public Agent getAgentsByCurrencyID(Agent agent) throws SQLException;
	ResultSet prepareAgentBalanceReport(AgentBalanceRpt entity)throws SQLException;
	ResultSet prepareAgentLedgerReport(AgentLedgerRpt entity)throws SQLException;
}
